home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 31
/
Aminet 31 (1999)(Schatztruhe)[!][Jun 1999].iso
/
Aminet
/
dev
/
c
/
vbccppcsrc.lha
/
vbcc
/
ar
/
version.c
< prev
Wrap
C/C++ Source or Header
|
1999-03-07
|
2KB
|
57 lines
/* $VER: ar version.c V0.1 (31.01.98)
*
* This file is part of ar, a portable archive maintanance
* utility for normal and BSD-style archives.
* Copyright (c) 1999 Frank Wille
*
* ar is freeware and part of the portable and retargetable ANSI C
* compiler vbcc, copyright (c) 1995-99 by Volker Barthelmann.
* ar may be freely redistributed as long as no modifications are
* made and nothing is charged for it. Non-commercial usage is allowed
* without any restrictions.
* EVERY PRODUCT OR PROGRAM DERIVED DIRECTLY FROM MY SOURCE MAY NOT BE
* SOLD COMMERCIALLY WITHOUT PERMISSION FROM THE AUTHOR.
*
*
* v0.1 (31.01.99) phx
* First working version, which only supports 'q' (quick append)
* and 't' (table of contents), reads and writes normals and
* BSD-style archives. Symbol table will not be created!
* v0.0 (29.01.99) phx
* File created.
*/
#include <stdio.h>
#include "ar.h"
void show_version(void)
{
fprintf(stderr,PNAME " V%d.%d%c (c)1999 by Frank Wille\n"
"build date: " __DATE__ ", " __TIME__ "\n\n"
,VERSION,REVISION,PLEVEL?('a'+PLEVEL-1):' ');
}
void show_usage(void)
{
static const char *ar = PNAME;
static const char *pos = " position";
static const char *arc = " archive ";
static const char *fil = "file ...";
show_version();
fprintf(stderr,"Usage:\n\t%s d[TBv]%s%s\n"
"\t%s m[TBv]%s%s\n"
"\t%s m[abiTBv]%s%s%s\n"
"\t%s p[Tv]%s[%s]\n"
"\t%s q[cTBv]%s%s\n"
"\t%s r[cuTBv]%s%s\n"
"\t%s r[abciuTBv]%s%s%s\n"
"\t%s t[Tv]%s[%s]\n"
"\t%s x[ouTv]%s[%s]\n",
ar,arc,fil,ar,arc,fil,ar,pos,arc,fil,ar,arc,fil,ar,arc,fil,
ar,arc,fil,ar,pos,arc,fil,ar,arc,fil,ar,arc,fil);
}